package com.intelligent.health.member.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Date;
import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: torlesse-liang
 * @Date: 2022/03/17/22:43
 * @Description: User
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("t_user")
public class User {

    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    private String username;

    /**
     * 昵称
     */
    @TableField(value = "nick_name")
    private String nickName;

    private String password;

    private String gender;

    private Integer age;

    @TableField(value = "telephone")
    private String telephone;

    private String email;

    /**
     * 生日
     */
    private Date birthday;

    /**
     * 注册时间 用户创建时间
     */
    @TableField(value = "create_time")
    private Date registerTime;

    /**
     * 备注
     */
    private String remark;

    /**
     * 是否有效 1有效 0无效
     */
    @TableField(select = false)
    private Integer station;

    @TableField(exist = false)
    private ArrayList<Role> roles;
}
